﻿using System;
using System.Data;
using System.Web.UI.WebControls;
using ASPNETVN.PORTAL.Components.Configuration;
using ASPNETVN.PORTAL.Components.UI;
using ASPNETVN.PORTAL.Components.Share;

namespace ASPNETVN.PORTAL.Modules.CMS.Controls
{
    public partial class Setup : AddEditItemControl
    {
        protected override void OnInit(EventArgs e)
        {
            this.ButtonUpdate = btnSave;
            this.ButtonCancel = btnCancel;

            this.Update += new EventHandler(Setup_Update);
            base.OnInit(e);
        }

        void Setup_Update(object sender, EventArgs e)
        {
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack == false)
            {

            }
        }

        public DataSet GetCategoryList(int mid)
        {
            DataSet ds = Category.SelectDynamic(string.Format("ModuleID = {0} AND (ParentID = 0)", mid), "Title");
            return ds;
        }
    }
}